﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainManager.master" AutoEventWireup="true" CodeFile="PageTrichLocThongTin.aspx.cs" Inherits="CanBo_PageTrichLocThongTin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="row-fluid">
                <div class="span12" id="divMsg" runat="server" visible="false">
                    <div class="alert" id="divAlert" runat="server"></div>
                </div>
            </div>
            <div class="row-fluid">

                <div class="span12">
                    <h3>Trích lọc thông tin Cán bộ</h3>
                    <div class="well">
                        <b>Trích lọc thông tin cán bộ</b>
                        <asp:CheckBoxList ID="cblTrichLoc" runat="server" CssClass="inline" BorderStyle="Dotted" RepeatDirection="Horizontal">
                            <asp:ListItem Value="HoTenCanBo">Họ tên</asp:ListItem>
                            <asp:ListItem Value="NgaySinh">Ngày sinh</asp:ListItem>
                            <asp:ListItem Value="LoaiCanBo">Loại cán bộ</asp:ListItem>
                            <asp:ListItem Value="ChucVu">Chức vụ</asp:ListItem>
                            <asp:ListItem Value="DonVi">Đơn vị</asp:ListItem>
                            
                            <asp:ListItem Value="LaDangVien">Đảng viên</asp:ListItem>
                        </asp:CheckBoxList>

                        <a id="btnTim" runat="server" class="btn btn-danger" onserverclick="btnTim_ServerClick">Lọc thông tin</a>
                        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                    </div>
                    <asp:Repeater ID="rptData" runat="server">

                        <HeaderTemplate>
                            <table class="table table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th width="10">
                                            <input type="checkbox" id="check_all" /></th>
                                        <th width="50"></th>

                                        <%if (ShowHoTen)
                                          { %>
                                        <th>Họ tên</th>
                                        <%} %>
                                        <th width="50">G. tính</th>
                                         <%if (ShowNgaySinh)
                                          { %>
                                        <th width="100">Ngày sinh</th>
                                        <%} %>
                                        <th width="100">Số CMND</th>
                                          <%if (ShowLoaiCanBo)
                                          { %>
                                        <th>Loại Cán bộ</th>
                                        <%} %>
                                         <%if (ShowLaDangVien)
                                          { %>
                                        <th>Đảng viên</th>
                                        <%} %>
                                          <%if (ShowDonVi)
                                          { %>
                                        <th>Đơn vị</th>
                                        <%} %>                                        
                                    </tr>
                                </thead>
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <input id="chkSelect" type="checkbox" name="cid" value="<%#Eval("ID") %>" />
                                </td>
                                <td>

                                    <img src="<%#Eval("HinhDaiDien") %>" width="48" alt="" />

                                </td>
                                <%if (ShowHoTen)
                                  { %>
                                <td>
                                    <%#Eval("HoTenCanBo") %>
                                </td>
                                <%} %>
                                <td><%#Eval("GioiTinh") %></td>
                                 <%if (ShowNgaySinh)
                                          { %>
                                <td><%#Eval("NgaySinh","{0:dd/MM/yyyy}") %></td>
                                <%} %>
                                <td><%#Eval("SoCMND") %></td>
                                  <%if (ShowLoaiCanBo)
                                          { %>
                                <td><%#Eval("LoaiCanBo.TenLoaiCB") %></td>
                                <%} %>

                                  

                                 <%if (ShowLaDangVien)
                                          { %>
                                <td><%#Eval("LaDangVien") %></td>
                                <%} %>
                                 <%if (ShowDonVi)
                                          { %>
                                <td><%#Eval("DonVi.TenDonVi") %></td>
                                <%} %>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody>
                        </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <asp:PagingControl ID="PagingControl1" runat="server" PageSize="20" FirstPageText="Trang đầu"
                        LastPageText="Trang sau" PreviousPageText="Trang trước" NextPageText="Trang tiếp" />
                </div>
            </div>

        </ContentTemplate>
        <Triggers>
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>

